import React, { useState } from 'react';
import { Button, Modal } from 'antd';
import { connect } from 'react-redux'

export const Delshapan = ({props,isModalOpen,delshaitem,delshaindex,close,dispatch}:any) => {
    
  
    const handleOk = () => {
        close(false)
        dispatch({type:'sand/DELSHA',payload:delshaindex})
    };
  
    const handleCancel = () => {
        close(false)
    };
  return (
    <div>
         <Modal title="Basic Modal" open={isModalOpen} onOk={handleOk} onCancel={handleCancel}>
        <p>你确定要删除<span style={{color:'#099'}}>{delshaitem}</span>么</p>
        
      </Modal>
    </div>
  )
}

const mapStateToProps = (state:any) => ({})



export default connect(mapStateToProps)(Delshapan)